// import Cookies from 'js-cookie'

const TokenKey = 'user_token'

export function getToken() {
  return localStorage.getItem(TokenKey)
  // return Cookies.get(TokenKey)
}

export function setToken(token) {
  // var millisecond = new Date().getTime()
  // var expiresTime = new Date(millisecond + 60 * 1000 * 1)
  // return Cookies.set(TokenKey, token, { expires: expiresTime })
  return localStorage.setItem(TokenKey, token)
}

export function removeToken() {
  return localStorage.removeItem(TokenKey)
  // return Cookies.remove(TokenKey)
}
